import service from '@/utils/request'

export const createUdsFld = (data) => {
  return service({
    url: '/udsFld/createUdsFld',
    method: 'post',
    data
  })
}

export const deleteUdsFld = (data) => {
  return service({
    url: '/udsFld/deleteUdsFld',
    method: 'delete',
    data
  })
}

export const deleteUdsFldByIds = (data) => {
  return service({
    url: '/udsFld/deleteUdsFldByIds',
    method: 'delete',
    data
  })
}

export const updateUdsFld = (data) => {
  return service({
    url: '/udsFld/updateUdsFld',
    method: 'put',
    data
  })
}

export const findUdsFld = (params) => {
  return service({
    url: '/udsFld/findUdsFld',
    method: 'get',
    params
  })
}

export const getUdsFldList = (params) => {
  return service({
    url: '/udsFld/getUdsFldList',
    method: 'get',
    params
  })
}

export const getAllUdsFlds = (params) => {
  return service({
    url: '/udsFld/getAllUdsFlds',
    method: 'get',
    params
  })
}

export const getUdsFld = (data) => {
  return service({
    url: '/udsFld/getUdsFld',
    method: 'post',
    data
  })
}


export const initUdsFld = () => {
  return service({
    url: '/udsFld/initUdsFld',
    method: 'get',
  })
}
